package Picture;

import javax.swing.*;
import java.awt.*;

public class PictureAssemble extends JLabel{
    public PictureAssemble(String path, int x, int y, int width, int height, JFrame PicturePractice){
        Image image = new  ImageIcon(path).getImage();
        image = image.getScaledInstance(width,height,1);

        this.setIcon(new ImageIcon(image));
        this.setBounds(x,y,width,height);
        PicturePractice.add(this);

    }


}
